import 'package:flutter/cupertino.dart';
import 'package:full_display/generated/l10n.dart';

class ButtonListProvider extends ChangeNotifier {
  final List btnList = [
    {'img': 'icon_wifi', 'text': S.current.wifiSetTitle, "index": 0},
    {'img': 'icon_bluetooth', 'text': S.current.lanyashezhi, "index": 1},
    {'img': 'icon_clock', 'text': S.current.alarm, "index": 2}
  ];

  final List cloudsBtnList = [
    {'img': 'device', 'text': S.current.equipment, "index": 0},
    {'img': 'cluster', 'text': S.current.The_cluster, "index": 1},
    {
      'img': 'cloud_splic',
      'text': S.current.clound_Joining_together,
      "index": 2
    }
  ];

  final List clusterBtnList = [
    {'img': 'icon_cluster_switch', 'text': S.current.kaiguan, "index": 0},
    {
      'img': 'icon_cluster_bluetooth',
      'text': S.current.lanyashezhi,
      "index": 1
    },
  ];

  final List clusterOneBtnList = [
    {'img': 'icon_chongqi', 'text': S.current.chongqi, "index": 0},
    {'img': 'icon_timer', 'text': S.current.timing, "index": 1},
    {'img': 'icon_shunxubofang', 'text': S.current.sequence_play, "index": 2},
    {'img': 'icon_chongzhiwifi', 'text': S.current.Reset_the_WIFI, "index": 3},
  ];

  final List clusterInfoBtnList = [
    {
      'img': 'icon_xinxizhuangtai',
      'text': S.current.State_information,
      "index": 0
    },
    {'img': 'icon_kongjiandaxiao', 'text': S.current.The_size, "index": 1},
    {'img': 'icon_shishishijian', 'text': S.current.Real_time, "index": 2},
    {
      'img': 'icon_xiazaizhuangtai',
      'text': S.current.Download_status,
      "index": 3
    },
    {'img': 'icon_xianshimoshi', 'text': S.current.Display_mode, "index": 4},
    {'img': 'icon_banbenshengji', 'text': S.current.Version_update, "index": 5},
    {
      'img': 'icon_yunxingzhuangtai',
      'text': S.current.Running_state,
      "index": 6
    },
    {
      'img': 'icon_wangluozhuangtai',
      'text': S.current.The_network_status,
      "index": 7
    },
  ];

  final List splicInfoBtnList = [
    {'img': 'icon_cluster_switch', 'text': S.current.kaiguan, "index": 0},
    {'img': 'icon_chongqi_sp', 'text': S.current.chongqi, "index": 1},
    {'img': 'icon_shunxu_play', 'text': S.current.sequence_play, "index": 2},
    {
      'img': 'icon_jiaodutiaojie_sp',
      'text': S.current.jiaodutiaozheng,
      "index": 3
    },
  ];

  final List mediaBtnList = [
    {'img': 'imageIcon', 'text': S.current.tianjiatupian, "index": 0},
    {'img': 'videoIcon', 'text': S.current.tianjiashiping, "index": 1},
    {'img': 'wenziIcon', 'text': S.current.text, "index": 2},
  ];

  Map getStrByIndex(int index, List data) {
    return data[index];
  }
}
